package com.lee;

import com.rule.RuleConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
// 加载自定义的Ribbon配置类
// 自定义Ribbon配置类不能放在启动类对应的包下
@RibbonClient(name = "Eureka-Provider", configuration = RuleConfig.class)
@EnableEurekaClient // 服务发现
public class SpringCloudConsumer9001Application {

    public static void main(String[] args) {
        SpringApplication.run(SpringCloudConsumer9001Application.class, args);
    }

}
